#include <stdio.h>
char* my_strstr(char* p1, char* p2)
{
	char* cur = p1;
	char* s1 = p1;
	char* s2 = p2;
	while (*cur)
	{
		s1 = cur;
		s2 = p2;
		while ((*s1 != '\0') && (*s2 != '\0') && *s1 == *s2)
		{
			s1++;
			s2++;
		}
		if (*s2 == '\0')
		{
			return cur;
		}
		cur++;
	}
	return NULL;
}
int main()
{
	char str1[] = "abcdeabc";
	char str2[] = "de";
	printf("%s\n", my_strstr(str1,str2));
	return 0;
}